/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.util.sound;

import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Mixer;

/**
 *
 * @author Renato
 */
public abstract class BuscadorMixer {
    Mixer.Info[] mixers;    
    
    public BuscadorMixer(){        
        mixers=AudioSystem.getMixerInfo();                
    }
    
    public Mixer getMixer(){
        Mixer.Info info;
        info=mixers[this.getIdMixer()];        
        return AudioSystem.getMixer(info);
    }
    
    protected abstract int getIdMixer();
}
